<template>
  <view class="window" v-if="show" @click="handleClose">
      <view class="middle" @click.stop="">
          <image class="code-img" :src="'data:image/png;base64,' + imgUrl"></image>
          <view class="text">请用手机扫描上方二维码，登录并继续操作</view>
      </view>
  </view>
</template>

<script>
export default {
  name: "pcLoginGuide",
  data() {
      return {
          show: false,
          imgUrl:'https://resource.migudm.cn/group1/M00/00/21/CnwAKV0UlVaAfQHvAAApbafwoNI718.png'
      }
  },
  methods: {
      handleClose() {
          this.show = false
      }
  }
};
</script>

<style scoped lang="scss">
.window {
  background: rgba(0, 0, 0, 0.7);
  position: fixed;
  z-index: 10000000;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  .middle{
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 560rpx;
      background: #fff;
      height: 700rpx;
      display: flex;
      flex-direction: column;
      align-items: center;
      border-radius: 10rpx;
      .code-img{
          width: 400rpx;
          height: 400rpx;
          margin: 82rpx 0 60rpx 0;
      }
      .text{
          font-size: 32rpx;
          color: #333;
          text-align: center;
          width: 420rpx;
          line-height: 50rpx;
      }
  }
}
</style>
